package main

import (
	"goweb/handler"
	"goweb/router"
)

func main() {
	//初始化，生成单例service
	handler.GenerateOrderService()
	//关闭连接
	defer handler.OrderService.OrderDb.Db.Close()

	//初始化路由
	router.InitRouter()
}
